package com.micro.common.service.web.client.api;

import com.micro.common.service.web.client.domain.req.DictQueryReq;
import com.micro.common.service.web.client.domain.resp.DictListResp;
import com.micro.framework.starter.common.data.result.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

@RestController
@Api(value = "数据字典-feign接口", tags = "数据字典-feign接口")
@RequestMapping("/open/api/dictData")
public interface DictOpenApi {

    @ApiOperation(value = "字典列表")
    @PostMapping("/dictList")
    Result<List<DictListResp>> dictList(@Valid @RequestBody DictQueryReq req);

}
